package com.dayuanit.booksystem.util;

import java.io.IOException;
import java.lang.reflect.Proxy;
import java.util.Properties;

public class JDBCUtils {

    private static Properties properties = new Properties();

    static {
        try {
            properties.load(JDBCUtils.class.getClassLoader().getResourceAsStream("jdbc.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getUrl() {
        return properties.getProperty("url");
    }

    public static String getUsername() {
        return properties.getProperty("username");
    }

    public static String getPassword() {
        return properties.getProperty("password");
    }
}
